Rails.application.routes.draw do
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html

  root 'posts#index'

  resources :posts do
    post 'new', on: :collection
    put 'edit', on: :member
    delete 'destroy_all', on: :collection
  end
end
